projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91bcf6f
)
settings: Make font-size changes apply immediately
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 Apr 2021 03:04:09 +0000
(23:04 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 3 Apr 2021 03:04:09 +0000
(23:04 -0400)
We need to invalidate the style when font-size changes,
because we propagate this value through the initial
value of the CSS font-size property, and it will not
be recomputed otherwise.
gtk/gtksettings.c
patch
|
blob
|
history
diff --git
a/gtk/gtksettings.c
b/gtk/gtksettings.c
index 6d096698b07bb4d1ea94fc211036f021dde05e33..b88c6ea37dcb11fa4672575f848935947e9e2073 100644
(file)
--- a/
gtk/gtksettings.c
+++ b/
gtk/gtksettings.c
@@
-1432,6
+1432,7
@@
gtk_settings_notify (GObject *object,
settings_update_theme (settings);
break;
case PROP_XFT_DPI:
+ settings_invalidate_style (settings);
gtk_system_setting_changed (settings->display, GTK_SYSTEM_SETTING_DPI);
break;
case PROP_XFT_ANTIALIAS: